package tech.aistar.mapper;

import org.apache.ibatis.annotations.Param;
import tech.aistar.model.entity.Applyed;

import java.util.List;

public interface ApplyedMapper {

    /**
     * 更新投递表中职位的处理状态
     * @param customerId
     * @param jobId
     * @param dealState
     * @return
     */
    int updateApplyedDealState(@Param("customerId") Integer customerId,@Param("jobId") Integer jobId, @Param("dealState") Integer dealState);


    /**
     * 怎加投递职位
     * @param applyed
     * @return
     */
    int addApplyedJob(Applyed applyed);

    List<Applyed> getByCID(Integer id);


    List<Applyed> getByCIdDealS(@Param("cid") Integer cId,@Param("deals") Integer dealState);

    Applyed getByCIdJId(@Param("cid") Integer cId,@Param("jid") Integer jid);


}
